
OBJ= main.o routine.o


CC=gcc

TARGET=feidian_monitor

BASEFLAGS= -O2 -Wall

CFLAGS= ${BASEFLAGS} `pkg-config --cflags gtk+-2.0` 
LDFLAGS=${BASEFLAGS} `pkg-config --libs gtk+-2.0 gthread-2.0`

all:${TARGET}

${TARGET}: ${OBJ}
	${CC} ${LDFLAGS} -o ${TARGET} ${OBJ}

install:
	/bin/cp feidian_monitor /usr/local/bin 


clean:
	rm -f *.o 	
	rm -f *~
	rm -f ${TARGET}


%.o:    %.c ${HEADERS}
	${CC} ${CFLAGS} -c $< -o $@
					
